.top {
    height: 100px;
    background-color: antiquewhite;
}

.logo {
    height: 100px;
}

.nav {
    height: 50px;
    background-color: aqua;
    line-height: 50px;
    text-align: center;
}

.text {
    float: right;
    height: 50px;
    line-height: 50px;
    width: 40%;
    background-color: grey;
}

.text:nth-of-type(2) {
    width: 20%;
    height: 40px;
    line-height: 40px;
    background-color: skyblue;
}

.container {
    /* 添加flex布局 */
    display: flex;
    width: 900px;
    height: 600px;
    margin: 0 auto;
    /* 换行 */
    flex-wrap: wrap;
    background-color: antiquewhite;
    /* 分配主轴的剩余空间 */
    justify-content: space-between;
}

.goods {
    height: 45%;
    border: 1px solid black;
    width: 23%;
    display: flex;
    flex-direction: column;
    align-items: center
}

.goods:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    /* box-shadow: 2px 3px 4px grey; */
}

.goods img {
    width: 90%;
}

p {
    margin: 2px 0;
    text-align: center;
}

p span {
    text-decoration: line-through red 3px;
}

.goods p:nth-of-type(3) {
    color: red;
}